﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.ComponentModel;
using System.Text;
using MVC.ApiExplorer;
using MVC.ApiExplorer.Demo.Models;

namespace The.controller.you.want.to.explore
{
	public class ComplexModelAPIController : Controller
	{
		[NonApi]
		public ActionResult Index()
		{
			return View();
		}

		[HttpPost]
		[Description("Complex model binding")]
		public ActionResult ComplexModelBinding(Person person1, Person person2, List<Person> people)
		{
			return Json(new { People = new[]{person1, person2} });
		}

	}
}
